import TrialView from './TrialView.vue';

// 处理注入的参数
let initData = {};

try {
  initData = JSON.parse(window._init || '{}');
} catch (error) {
  console.log(error);
  console.log('no init data');
}

let app = {
  provide: {
    initData: Object.freeze(initData)
  },
  render: h => (<TrialView></TrialView>)
}

export default app;